<?php
// Fase.php
/**
 * View do formulário de fase
 * @filesource  11/02/2012
 * @author      Estrada Virtual <http://estradavirtual.com.br>
 * @copyright   Copyright <2010> Estrada Virtual
 * @package     <<application>>
 * @subpackage  <<application>>.application.views
 * @version     $Id: formulario.phtml 150 2012-02-11 12:18:38Z gustavoguarda $
 */
 ?>
<ul id="menu">
    <li>
        <a href="javascript:history.back();">Voltar</a>
    </li>
</ul>
<div id="divFormulario" style="padding:30px;">
    <br />
    <h2>Salvar fase</h2>
    <br />
    <form action="<?php echo $this->baseUrl() ?>/fases/gravar" method="post" name="formulario" id="formulario">
        <input type="text" name="id_fase" id="id_fase" value="<?php echo $this->fase->id_fase; ?>" />
        <div>
            <label for="nome">Nome: *</label><br />
            <input type="text" name="st_nome" class="required" id="st_nome" value="<?php echo $this->fase->st_nome; ?>" title="Nome"  maxlength="45" style="width: 300px" />
        </div>
        <div>
            <label for="dt_inicio">Data Início: </label><br />
            <input type="text" class="data" name="dt_inicio" id="dt_inicio" value="<?php echo $this->fase->dt_inicio; ?>" title="Dt. Inicio" style="width: 80px" />
        </div>
        <div>
            <label for="dt_fim">Data Fim: </label><br />
            <input type="text" class="data" name="dt_fim" id="dt_fim" value="<?php echo $this->fase->dt_fim; ?>" title="Dt. Fim" style="width: 80px" />
        </div>
        <br />
        <input type="submit" name="enviar" id="enviar" value="Gravar" />
    </form>
</div>
<script type="text/javascript">
$(function(){
    //validação
    $("form").validate({
        ignoreTitle: true
    });
});
</script>
